/**
 * 
 */
package com.unicom.priceboard.util;

public abstract class Constants {
    public static final String PROFILES = "profiles";
    public static final String PROFILE = "profile";
    public static final String CENTERS = "centers";
    public static final String DYNAMIC_SUCCESS = "dynamic_success";
    
    public static final String STOCKS_BY_CENTER = "stocksbycenter";
    public static final String SYMBOLS_BY_CENTER = "symbolsbycenter";
    public static final String SUCCESS = "success";
    public static final String FAILURE = "failure";
    public static final String DISPATCH = "dispatch";
    public static final Object UPDATE = "update";
    public static final Object INSERT = "insert";
    public static final String STOCKS = "stocks";
    public static final String NEW_PROFILE_FLAG = "new_profile";
    public static final int FROOMNEW = 1;
    public static final int FROOMOLD = 0;
    
    public static final int HANOI_SESSION_PRE_OPEN=6;
    public static int HANOI_CENTER_ID = 2;
    public static int HCM_CENTER_ID = 1;
    public static String BASE_PATH="basepath";
    
    public static String STOCK_INFO_ENTRY = "STS_StocksInfo.XML";
	public static String ORDER_ENTRY = "STS_Orders.XML";
	public static String MARKET_INFO_ENTRY = "STS_MarketInfo.XML";
	public static String BEST_PRICE_ENTRY = "STS_TOP3_PRICE_A.XML";
	//edit by vietnga
	public static final String MARKET_STATE_INACTIVE = "0";//Market close
	public static final String MARKET_STATE_OPEN_SESSION = "1";//being in Open Session
	public static final String MARKET_STATE_CONTINOUS_SESSION = "2";//being in Continuous session
	public static final String MARKET_STATE_CLOSE_SESSION = "3";//being in Close session
	public static final String MARKET_STATE_PTD_SESSION = "4";//being in Put through Deal session
	public static final String MARKET_STATE_END_TRADING = "5";//End of trading day
	public static final String MARKET_STATE_PRE_OPEN="6";//pre open trading day
	//Control Code in MARKET_STAT.DAT file
	public static final char MARKET_SESSION1_START = 'P'; 
	public static final char MARKET_SESSION2_START = 'O';
	public static final char MARKET_SESSION3_START = 'A';
	public static final char MARKET_SESSION4_START = 'C';
	public static final char MARKET_SESSION4_END = 'K';
	public static final int READING_TIME_START = 700;//Integer.parseInt(Resources.getAppMessage("time.read.start"));
	public static final int READING_TIME_END = 1115;//Integer.parseInt(Resources.getAppMessage("time.read.end"));
	
	//point of time for reseting HASTC data
	public static final int TIME_FOR_RESET_HASTC=830;
	public static final int TIME_RESET_FLAG_HASTC=1115;
	
	//Trading time
	public static final int HOSE_TRADING_START = Integer.parseInt(DataPath.hoseTimeStart);
	public static final int HOSE_TRADING_END = Integer.parseInt(DataPath.hoseTimeEnd);
	public static final int HASTC_TRADING_START = Integer.parseInt(DataPath.hastcTimeStart);
	public static final int HASTC_TRADING_END = Integer.parseInt(DataPath.hastcTimeEnd);
	
	//Delay Time for reading file
	public static final int HOSE_TIME_DELAY = Integer.parseInt(DataPath.hoseWait);
	public static final int HASTC_TIME_DELAY = Integer.parseInt(DataPath.hastcWait);
	
	//Database update time
	//public static final int DB_UPDATE_TIME = Integer.parseInt(Resources.getConfigMessage("priceboard.db.time.update"));
	public static final int DB_UPDATE_TIME = Integer.parseInt(DataPath.dataBaseUpdateTime);
	
	//Starting time,ending time,refresh time for reading LE.DAT
	public static int LE_READ_START = 857;//Integer.parseInt(Resources.getCurrentDATPath("time.read.LE.start"));
	public static int LE_READ_END = 1115;//Integer.parseInt(Resources.getCurrentDATPath("time.read.LE.end"));
	public static int LE_READ_CLEAR_CACHE = 700;//Integer.parseInt(Resources.getCurrentDATPath("time.read.LE.clearCache")
	public static String FROOM = "FROOM.DAT";
	public static String FROOM_OLD = "FROOMOLD.DAT";
	public static String OFFSET = "OFFSET.DAT";
	public static String OS = "OS.DAT";
	public static String LE = "LE.DAT";
	public static String MARKET_STAT = "MARKET_STAT.DAT";
	public static String PUT_AD = "PUT_AD.DAT";
	public static String PUT_EXEC = "PUT_EXEC.DAT";
	public static String SECURITY = "SECURITY.DAT";
	public static String TOTALMKT = "TOTALMKT.DAT";
	//the end
}
